table.insert(itemActions,
	function(item, action)
		-- MAGIC/RARE druid helms
		-- see: dir .. "readme.txt" for information regarding these variables
		local priority = 4
		local identify = true
		local dump = true

		if not (item.baseItem.baseType.Type == ItemKind.Pelt and item.quality == ItemQuality.Rare) then
			return false
		elseif action == aPICK and (not item.flags.Identified or isGoodMagicRarePelt(item)) then
			return priority
		elseif action == aIDENT then
			return identify
		elseif action == aSELL and item.flags.Identified and not isGoodMagicRarePelt(item) then
			return true
		elseif action == aDUMP and item.flags.Identified and not isGoodMagicRarePelt(item) then
			return dump
		end

		return false
	end
)

function isGoodMagicRarePelt(item)
	local nado, druid, ele = false, false, false

	for i = 0, item.mods:size() - 1 do
		if (item.mods[i].Stat.Type == StatType.SingleSkill and
			item.mods[i].Skill == SkillType.Tornado and
			item.mods[i].Value >=2 ) then
			nado = true
		elseif (item.mods[i].Stat.Type == StatType.ClassSkillsBonus and
			item.mods[i].Value == 2) then
			druid = true
		elseif (item.mods[i].Stat.Type == StatType.SkillTabBonus  and
			item.mods[i].Tab == SkillTab.Elemental and
			item.mods[i].Value >= 2) then
			ele = true
		end
	end

	return (nado and (ele or druid))
end
